<?php
/* @var $this BlogController */
$this->layout = '//layouts/admin/login';
$this->breadcrumbs=array(
	'Blog',
);
?>
<div class="container">
    
<?php 
$form=$this->beginWidget('CActiveForm', array(
    'id'=>'login-form',
    'enableClientValidation'=>true,
    'clientOptions'=>array(
        'validateOnSubmit'=>true,
    ),
    'htmlOptions'=>array(
        'class'=>'form-signin'
    )
));
?>
    <h2 class="form-signin-heading">登陆管理后台</h2>
    <div class="control-group">
    <?php echo $form->textField($model,'username',array('class'=>'input-block-level','placeholder'=>'登陆账号')); ?>
    <?php echo $form->labelEx($model,'',array('class'=>'login-field-icon fui-man-16','for'=>'login-name')); ?>
    <?php echo $form->error($model,'username',array('class'=>'alert')); ?>
    </div>
    <div class="control-group">
    <?php echo $form->passwordField($model,'password',array('class'=>'input-block-level','placeholder'=>'登陆密码')); ?>
    <?php echo $form->labelEx($model,'',array('class'=>'login-field-icon fui-man-16','for'=>'login-password')); ?>
    <?php echo $form->error($model,'password',array('class'=>'alert')); ?>
    </div>
    <div class="control-group">
    <?php echo $form->textField($model,'verifyCode',array('class'=>'input-block-level','placeholder'=>'输入验证码')); ?>
    <?php echo $form->labelEx($model,'',array('class'=>'login-field-icon fui-man-16','for'=>'login-verifycode')); ?>
    <?php echo $form->error($model,'verifyCode',array('class'=>'alert')); ?>
    </div>
    <div class="control-group">
        <?php $this->widget('CCaptcha',array(
            'showRefreshButton'=>true,
            'clickableImage'=>false,
            'buttonLabel'=>'刷新验证码',
            'imageOptions'=>array(
                'alt'=>'点击换图',
                'title'=>'点击换图',
                'style'=>'cursor:pointer',
                'padding'=>'10')
            )); ?>
    </div>
  
    
    <label class="checkbox">
        <span class="icons"><span class="first-icon fui-checkbox-unchecked"></span><span class="second-icon fui-checkbox-checked"></span></span>
        <?php echo CHtml::activeCheckBox($model,'rememberMe');?>记住我
    </label>
    <div class="">
		<?php echo CHtml::submitButton('登陆',array('class'=>'btn btn-large btn-primary')); ?>
	</div>
<?php 
$this->endWidget();
?>
</div>
